package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 战队和战队战队赛事经历关联表
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
@ApiModel(value = "TeamMatch对象", description = "战队和战队战队赛事经历关联表")
public class TeamMatch extends Model<TeamMatch> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "赛事日期")
    @TableField("match_time")
    private Long matchTime;

    @ApiModelProperty(value = "赛事名称")
    @TableField("match_name")
    private String matchName;

    @ApiModelProperty(value = "获得名次")
    @TableField("ranking")
    private Integer ranking;

    @ApiModelProperty(value = "获得积分")
    @TableField("integral")
    private Integer integral;

    @ApiModelProperty(value = "关联战队信息表id")
    @TableField("team_id")
    private Long teamId;

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")


    private Long createTime;

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMatchTime() {
        return matchTime;
    }

    public void setMatchTime(Long matchTime) {
        this.matchTime = matchTime;
    }

    public String getMatchName() {
        return matchName;
    }

    public void setMatchName(String matchName) {
        this.matchName = matchName;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TeamMatch{" +
                "id=" + id +
                ", matchTime=" + matchTime +
                ", matchName=" + matchName +
                ", ranking=" + ranking +
                ", integral=" + integral +
                ", createTime=" + createTime +
                ", teamId=" + teamId +
                "}";
    }
}
